Python tkinter文件对话框保存和docx tpl

您所在的位置:网站首页 python asksaveasfile Python tkinter文件对话框保存和docx tpl

Python tkinter文件对话框保存和docx tpl

#Python tkinter文件对话框保存和docx tpl| 来源: 网络整理| 查看: 265

Python tkinter文件对话框保存和docx tpl,python,tkinter,Python,Tkinter,我和tkinter一起使用docx模板,我希望将某些变量保存到我创建的docx模板中。如果我指定了文件名,那么一切都正常(doc.save(filename.docx))。但是,我想使用filedialog.asksaveasfile函数指定文件名,而不是调用名称。我尝试过几种方法,但我总是得到一个空白的docx文件。有人偶然尝试过吗 def summary_save(): file = filedialog.asksaveasfile( mode="w&quo



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3